-- magic_reflex
-- created by panyl
-- 每若干轮自动攻击

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, arg)
        local msg = string.format("%s魔法反射攻击。", who:getName());
        trace("magic_reflex", msg);

        SkillM.hit(who, arg, 0);
        SkillM.getSequence(arg):start(who, arg, 0);
        --EventMgr.fire(event.PLAYER_MOVE, who:getOwner());

        return true;
    end,

    record = function(target, prop, path)
        return false;
    end
};
